//
// Created by yongj on 2021/7/19.
//

#ifndef MOTORCONTROL_UART_H
#define MOTORCONTROL_UART_H

#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/uart.h"
#include "hardware/irq.h"
#include "../DJI-P36/P36.h"

#define UART_ID     uart0
#define BAUD_RATE   115200
#define DATA_BITS   8
#define STOP_BITS   1
#define PARITY      UART_PARITY_NONE

#define UART_TX_PIN 0
#define UART_RX_PIN 1

void uartINIT();
void uartREAD();

#endif //MOTORCONTROL_UART_H
